<template>
  <div>
    <p :style="{color: colorStr}">value变量的值, 将被赋予给css属性的key生效</p>
  </div>
</template>

<script>
export default {
  data() {
    return {
      colorStr: 'red'
    };
  }
};
</script>

<style scoped>
</style>